Label |
The easiest control is label. the label is an object of type Label and it contains a String. |
Adding & Removing controls: |
component Add(component object) |
import java.awt.*;
import java.applet.*;
public class Lable extends Applet
{
public void init()
{
Label l1=new Label("Vision");
Label l2=new Label("Computers");
Label l3=new Label("Main Road");
Label l4=new Label("Vuyyuru");
add(l1);
add(l2);
add(l3);
add(l4);
}
}
/*<applet code=Lable height=100 width=300>
</applet>*/